<div class="wrapMain">

    
    <div id="row">
		    <div class="col-md-8"> 
               	
                    <ul class="breadcrumb-arrow">
                      
                       <li><a href="<?php echo HOME; ?>"><i class="fa fa-home"></i> Home</a></li>
                         <li><a href="<?php echo url(); ?>">Channel</a></li>
                        <li><a href="<?php echo url(); ?>"><?php echo $_GET['user'] ?></a></li>
                       
                        </ul>
   				
                    
                    
                    
             <div class="panel panel-default">
 	  		<div class="panel-body" style="padding:0px; margin:0px"> 
      				 <div class="item_blog_detail">
						  <div class="head_info" style="border-bottom:1px solid #eee; padding:0px; margin:0px; background-color:#fafafa">
                                  <h1><i class="fa fa-home"></i> Thảo Luận - Nhắn Tin trên tường của <span style="color:#F00"> <?php echo $_GET['user'] ?></span></h1>
                         
        
                                
                          </div> <!-- End of headinf0 -->
									 <p class="detail_description" style="margin-left:10px">
									Nếu bạn có vấn đề nào muốn trao đổi hoặc muốn nhắn tin cho <b><?php echo $_GET['user'];?></b> thì bạn có thể comment ở đây hoặc liên hệ trực tiếp bằng những thông tin liên hệ của  <b><?php echo $_GET['user'];?></b>.
									</p>
                                  <style>.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe[style]  {width: 100% !important;}</style>
                    	<div id="fb-comment-box" class="facebook-comment"><div class="fb-comments" data-href="<?php echo url(); ?>"></div>

                             
						
	
                	<div style="height:20px"></div>
                  
                                   
					
                   </div> <!-- End of item_blog_detail -->
                    </div> <!-- End of panel body -->
					</div><!-- end of panel   -->
                    </div>
                  
                   
                    <!-- Start box comment -->
  
                         <script>
			window.fbAsyncInit = function() {
 FB.init({appId: '<?php echo FB_ID;?>', status: true, cookie: true, xfbml: true});

     FB.Event.subscribe('comment.create', function(response) {
          var commentQuery = FB.Data.query('SELECT fromid, text FROM comment WHERE post_fbid=\'' + response.commentID + '\' AND object_id IN (SELECT comments_fbid FROM link_stat WHERE url=\'' + response.href + '\')');
      var user = FB.Data.query(
       "select name, id, url, pic_square from profile where id in"
     + "(select fromid from {0})", commentQuery);
 
  FB.Data.waitOn([commentQuery,user], function () {
   ct = commentQuery.value[0].text;

   u = user.value[0].name;
   td='<?php echo $_GET['user'] ?>';
   url='<?php echo url() ?>';
   m='channel';
   ip='<?php echo get_ip(); ?>';
   id='<?php echo $_GET['id'] ?>';
	// Query get user info with fromid
	//Send data to server using ajax ------ KAKAKAKAKAKA
			 var   values='comment_user='+u+'&comment_tieude='+td+'&comment_url='+url+'&comment_type='+m+'&ip='+ip+'&comment_id='+id+
    '&comment_content='+ct+'&module=user&act=ajax&add_comment';
	
  	$.ajax({
      url: "index.php",
      type: "post",
      data: values,
      success: function(data){
          },
   
    }); 
	
    // Use your preferred way to inform the server to save comment
     });
 });         
 };
 
 </script>        
                
                    
                    </div> <!-- End of col-md-8 -->
                    
                    <!-- Start Right Block -->
                    <div class="col-md-4">
                    	 <div class="user_profile_wrap" style="background-color:#fff; padding:5px; border-top:2px solid #F63">
                    	<div class="row">
                        	<div class="col-md-12">
                                    <div class="row">
                                           
                                            <div class="col-md-12">
                                               <img src="<?php echo $data['user']['lavatar1']; ?>" class="img-rounded img-responsive pull-left"  style="margin-right:15px" />
                                                <div class="user_name" style="font-weight:bold; padding:5px ; color: #03F; padding-left:15px"><a href="<?php echo $data['user']['url']; ?>"><?php echo $data['user']['show']; ?></a></div>
                                                <div class="user_join" style="font-size:11px; color:#999; padding-bottom:0px; padding-left:15px">Tham gia : <?php echo time_ago($data['user']['date_registered']); ?></div>
                                              
                                           <div class="user_static">
                            	<ul class="nav nav-pills" style="margin:0px; padding:0px">
                                  <li > <a href="<?php if($data['user']['website']==1){ echo $data['user']['website'];}else{ echo HOME;} ?>" target="_blank" rel="nofollow"> <i class="fa fa-home"></i>   Website           </a>  </li>
                                  <li > <a href="<?php if($data['user']['facebook']==1){ echo "https://facebook.com/".$data['user']['facebook_id'];}else{ echo url()."#";} ?>" target="_blank" rel="nofollow"><i class="fa fa-facebook"></i> FaceBook </a> </li>
                                   
                                 
                                </ul>
                            </div>
                                            </div>
                                            <div class="clearfix"></div>
                                              <div class="user_description" style="color:#333; font-size:12px; margin-top:5px; color:#999"> <i class="fa fa-quote-left"></i> <?php echo $data['user']['gioithieu']; ?><i class="fa fa-quote-right"></i></div>
                                    </div> <!-- End of row -->
                            </div> <!-- End col-md-12 -->
          				 </div>    <!-- end row -->
                         
                        <style>
                        .user_info span{ color:#999}
						.user_info span.label{ color:#fff}
                        </style>
                         <div class="row user_info">
                                       <div class="col-md-5">
                                    <div class="user_static">
                                        <ul class="nav nav-pills  nav-stacked">
                                          <li > <a href="#">       <span class="label label-default pull-right"><?php echo $data['user']['num']['blog']; ?></span>    BLOG           </a>  </li>
                                          <li > <a href="#"><span class="label label-primary pull-right"><?php echo $data['user']['num']['video']; ?></span>VIDEO </a> </li>
                                             <li><a href="#"> <span class="label label-success pull-right"><?php echo $data['user']['num']['truyen']; ?></span> TRUYỆN</a> </li>
                                         
                                        </ul>
                                    </div>
                            </div>
                            
                                  <div class="col-md-7">
                                    <div class="user_static">
                                        <ul class="nav nav-pills  nav-stacked">
                                          <li > <a href="#">       <span class="pull-right">?</span>    Yahoo     </a>  </li>
                                          <li > <a href="#"><span class="pull-right">vnsale</span>Skype </a> </li>
                                             <li><a href="#"> <span class="pull-right">?</span> Phone</a> </li>       
                                                                         
                                        </ul>
                                    </div>
                            </div>
                            <div class="clearfix"></div>
                            <div class="col-md-12">
                            	<ul class="nav nav-pills  nav-stacked">
                                          
                                               <li><a href="#"> <span class="pull-right">?</span> <i class="fa fa-envelope-o"></i> Email</a> </li>
                                         
                                        </ul>
                            </div>
                         </div><!-- End row -->
                       
                    </div> <!-- End user detail wrap -->
           
                  </div> <!-- End of md-colum-4 -->                    
                   
                    
                    
                    </div><!-- End of row -->
                    </div> <!-- End of wrapmain -->
					<div class="clearfix"></div>		
									
				